//
//  JPProfileTableViewController.swift
//  JPWeibo
//
//  Created by 哇咔咔 on 16/9/19.
//  Copyright © 2016年 jp. All rights reserved.
//

import UIKit

class JPProfileTableViewController: JPVistorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !isLogin {
            vistorView = JPVistorView(frame: UIScreen.main.bounds, title: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
        setupUI()
    }
    
    private func setupUI() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    func pushAction() -> Void {
        let testVc = JPTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登录")
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
